//
//  LBBannerTipsView.h
//  AFNetworking
//
//  Created by LINAICAI on 2017/11/6.
//

#import <UIKit/UIKit.h>

@interface LBBannerTipsView : UIView
- (instancetype)initWithImage:(UIImage *)image
               attributedText:(NSAttributedString *)attributedText NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithCustom:(UIView *)custom NS_DESIGNATED_INITIALIZER;
- (instancetype)init NS_UNAVAILABLE;
- (instancetype)initWithCoder:(NSCoder *)coder NS_UNAVAILABLE;
- (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
@end
typedef NS_OPTIONS(NSUInteger, LBBannerTipsImageStyle) {
    LBBannerTipsSuccessImage = 1 << 0,
    LBBannerTipsErrorImage = 1 << 1,
    LBBannerTipsInfoImage = 1 << 2,
};
@interface UIView(LBBannerTipsView)
//传递普通文本
- (void)showBannerTipsWithText:(NSString *)text style:(LBBannerTipsImageStyle)style;
- (void)showBannerTipsWithText:(NSString *)text completeHander:(void(^)(void))completeHander;
- (void)showBannerTipsWithText:(NSString *)text style:(LBBannerTipsImageStyle)style completeHander:(void(^)(void))completeHander;
//传递属性文本
- (void)showBannerTipsWithAttributedText:(NSAttributedString *)attributedText style:(LBBannerTipsImageStyle)style;
- (void)showBannerTipsWithAttributedText:(NSAttributedString *)attributedText completeHander:(void(^)(void))completeHander;
- (void)showBannerTipsWithAttributedText:(NSAttributedString *)attributedText style:(LBBannerTipsImageStyle)style completeHander:(void(^)(void))completeHander;
@end

